// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import {
    Form,
    Input,
    FormItem,
    Button,
    Loading,
    Message,
    Checkbox,
} from 'element-ui'
import EPDropDown from '@/components/EPDropDown'
import EPDropDownMenu from '@/components/EPDropDownMenu'
import EPCategoryMenu from '@/components/EPCategoryMenu'
import EPSubMenu from '@/components/EPSubMenu'
import EPSubMenuItem from '@/components/EPSubMenuItem'
import EPHeader from '@/components/EPHeader'
import EPFooter from '@/components/EPFooter'

import EPSignInForm from '@/components/EPSignInForm'
import {post,get} from '../../utils/request';

import "@/assets/base.scss"

// Vue.prototype.$ELEMENT = { size: 'small' }
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Button);
Vue.use(Input);
Vue.use(Checkbox);
Vue.use(Loading.directive);

Vue.prototype.$loading = Loading.service;
Vue.config.productionTip = false
Vue.component(Message.name,Message);

Vue.prototype.$message = Message;

Vue.component(EPDropDown.name, EPDropDown);

Vue.component(EPDropDownMenu.name, EPDropDownMenu);
Vue.component(EPCategoryMenu.name, EPCategoryMenu);
Vue.component(EPSubMenu.name, EPSubMenu);
Vue.component(EPSubMenuItem.name, EPSubMenuItem);
Vue.component(EPHeader.name, EPHeader);
Vue.component(EPFooter.name, EPFooter);
Vue.component(EPSignInForm.name, EPSignInForm);


let vue = new Vue({
    el: "#app",
    name: "ep-app",
    data() {
        return {}
    }
})


window.Vue = vue;
window.get = get;
window.post = post;
/* eslint-disable no-new */

